<?php
use app\models\Api;
use app\models\Isp;
use app\models\PackageIsp;
use app\models\Storage;
use app\models\Ruku;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\widgets\Pjax;


$this->title = '导入';
$this->params['breadcrumbs'][] = '导入';
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $form = ActiveForm::begin();?>
<?php echo $form->field($modify, 'rkorder')->textInput(['autocomplete' => 'off','readonly'=>true]);?>
<?php echo $form->field($modify, 'rk_name')->textInput(['autocomplete' => 'off','readonly'=>true]);?>
<?php echo $form->field($modify, 'number')->textInput(['autocomplete' => 'off','readonly'=>true]);?>
<div class="form-group field-ruku-isp_id">
<label class="control-label" for="ruku-isp_id">运营商</label>
<input type="text" id="ruku-isp_id" class="form-control" name="Ruku[isp_id]" value="<?php echo Html::encode($modify->api->name);?>" readonly autocomplete="off">
<div class="help-block"></div>
<div class="form-group field-ruku-isp_id">
<label class="control-label" for="ruku-package_id">套餐</label>
<input type="text" id="ruku-package_id" class="form-control" name="Ruku[package_id]" value="<?php echo Html::encode($modify->packageIsp->name);?>" readonly autocomplete="off">
<div class="help-block"></div>
<?php echo $form->field($model, 'iccid_start')->hint('开始号码和结束号码必须同时填写。');?>
<?php echo $form->field($model, 'iccid_end')->hint('开始号码结束号码和ICCID列表必须至少填写一项。');?>
<?php echo $form->field($model, 'iccid_list')->textarea(['style' => 'min-height:400px;']);?>
<?php echo $form->field($model, 'batch_no')->textInput(['placeholder' => '批次号']);?>
<div class="form-group">
    <div class="col-lg-offset-1 col-lg-11">
        <button type="button" class="btn btn-default" onclick="window.history.go(-1);"><i class="ace-icon fa fa-arrow-left bigger-110"></i>返回</button>
        <button class="btn btn-primary"><i class="ace-icon fa fa-check bigger-110"></i>保存</button>
        <button type="reset" class="btn btn-warning"><i class="ace-icon fa fa-undo bigger-110"></i>重置</button>
    </div>
</div>
<?php $form->end();?>

